{% extends "layout.html" %}
{% block body %}

{% if session.username%}
    <!--登陆则显示最近7天每天发布的博客数量-->
    <div id="chart" style="width: 800px" >
       <embed type="image/svg+xml" src= {{ chart.render_data_uri()|safe }} />
    </div>
{% else %}
    <!--未登陆-->
    <div class="alert alert-success">This is home page</div>
{% endif %}


{% endblock %}
